package com.ruoyi.dgw.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 兽药对象 veterinary_drug
 * 
 * @author ll
 * @date 2022-01-07
 */
public class VeterinaryDrug extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 养殖户名称 */
    @Excel(name = "养殖户名称")
    private String userName;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 使用原因 */
    @Excel(name = "使用原因")
    private String useCase;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;

    /** 牛品种 */
    @Excel(name = "牛品种")
    private String cowType;

    /** 药名 */
    @Excel(name = "药名")
    private String drugName;

    /** 来源 */
    @Excel(name = "来源")
    private String source;

    /** 生产日期 */
    @Excel(name = "生产日期")
    private String productionTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setUseCase(String useCase) 
    {
        this.useCase = useCase;
    }

    public String getUseCase() 
    {
        return useCase;
    }
    public void setUseTime(Date useTime) 
    {
        this.useTime = useTime;
    }

    public Date getUseTime() 
    {
        return useTime;
    }
    public void setCowType(String cowType) 
    {
        this.cowType = cowType;
    }

    public String getCowType() 
    {
        return cowType;
    }
    public void setDrugName(String drugName) 
    {
        this.drugName = drugName;
    }

    public String getDrugName() 
    {
        return drugName;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    public void setProductionTime(String productionTime) 
    {
        this.productionTime = productionTime;
    }

    public String getProductionTime() 
    {
        return productionTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("address", getAddress())
            .append("phone", getPhone())
            .append("useCase", getUseCase())
            .append("useTime", getUseTime())
            .append("cowType", getCowType())
            .append("drugName", getDrugName())
            .append("source", getSource())
            .append("productionTime", getProductionTime())
            .toString();
    }
}
